
//-----------购物车-----------
	var shopping = document.getElementsByClassName("shopping")[0];
	var cargoods = document.getElementsByClassName("cargoods")[0];
	var timer1 = null;
	var isin = false;
	shopping.onmouseover = function(){
		cargoods.style.display = "block";
		clearTimeout(timer1);
	}
	shopping.onmouseout = function(){
		clearTimeout(timer);
		timer1 = setTimeout(function(){
			if(!isin){
				cargoods.style.display = "none";
			}
		},1000);
	}
	cargoods.onmouseover = function(){
		isin = true;
	}
	cargoods.onmouseout = function(){
		isin = false;
		this.style.display = "none";
	}


var welto = document.getElementsByClassName("welto")[0];
	var safel = document.getElementsByClassName("safel")[0];
	var tojoin = document.getElementsByClassName("tojoin")[0];
	var fre = document.getElementsByClassName("fre")[0];
	var userlogin=getCookie("userlogin");
	if(userlogin!=""){
		welto.innerHTML = "亲爱的";
		safel.innerHTML = userlogin;
		tojoin.innerHTML = "您好";
		fre.innerHTML = "[退出]";
	}